import mammoth from "mammoth";

export async function convertDocxToHtml(url) {
  const response = await fetch(url);
  const arrayBuffer = await response.arrayBuffer();
  return  await mammoth.convertToHtml({arrayBuffer});
}
export async function loadDocx(url:string) {
  const response = await fetch(url);
  return  await response.arrayBuffer();
}
